import { defineStore } from 'pinia'
import { ref, computed } from 'vue'
import { getCategoryAPI } from '@/apis/layout'
export const useCategoryStore = defineStore('category', () => {
    const CategoryList = ref([])
    const getCategory = async () => {
        const res = await getCategoryAPI()
        CategoryList.value = res.result
        // console.log(res);
    }
    return {
        CategoryList,
        getCategory
    }

})